{template 'admin','header'}
<table cellpadding="0" cellspacing="1" class="table_form">
    <caption>工作流步骤管理</caption>
    <tr>
        <td><a href='{$self_url}?action=process_add&workflowid={$workflowid}' ><font color="red">添加工作流步骤</font></a></td>
    </tr>
</table>
<table cellpadding="0" cellspacing="1" class="table_list">
    <caption>工作流步骤管理</caption>
    <tr>
        <th width="50">ID</th>
        <th width="120">步骤名称</th>
        <th>步骤描述</th>
        <th width="120">通过的操作名</th>
        <th width="120">退回的操作名</th>
        <th width="100">管理操作</th>
    </tr>
    {loop $data $r}
    <tr>
        <td class="align_c">{$r['id']}</td>
        <td class="align_c">{$r['name']}</td>
        <td align="left">{$r['description']}</td>
        <td class="align_c">{$r['passname']}</td>
        <td class="align_c">{$r['rejectname']}</td>
        <td class="align_c">
            <a href="{$self_url}?action=process_edit&id={$r['id']}&workflowid={$workflowid}">修改</a> |
            <a href="javascript:void(0)" onclick="my_request('{format_url("$self_url?action=process_delete&id=".$r['id'])}','确定要删除该步骤吗？')">删除</a>
        </td>
    </tr>
    {/loop}
</table>
<div class="button_box">
    <input type="button" name="back" value="返回" onclick="window.location='{$self_url}?action=workflow_list'">
</div>
{template 'admin','footer'}